/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.edu.unicen.twitter.suggest.backend.recommendation.Ranking.combinar;

/**
 *
 * @author Alex
 */
public class CombinadorPuntajeFactor implements CombinadorPuntaje{
    private final double factor;

    public CombinadorPuntajeFactor(double factor){
        this.factor = factor;
    }
    @Override
    public double combinar(double p1, double p2) {
        return (factor*p1)+((1-factor)*p2);
    }
    
}
